package com.htgd.gardenexpo.dao;

import com.htgd.gardenexpo.entity.GeConLeisureSports;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.htgd.gardenexpo.page.LeisureSportsQuery;
import com.htgd.gardenexpo.page.RecommendQuery;
import com.htgd.gardenexpo.vo.GeConLeisureSportsVO;
import com.htgd.gardenexpo.vo.LeisureSportsNumsVO;
import com.htgd.gardenexpo.vo.MyLeisureSportsList;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 休闲运动 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-09-27
 */
public interface GeConLeisureSportsMapper extends BaseMapper<GeConLeisureSports> {

    List<GeConLeisureSportsVO> pageList(LeisureSportsQuery leisureSportsQuery);

    List<HashMap> getLeisureSportsList(RecommendQuery recommendQuery);

    Long getLeisureSportsCount(RecommendQuery recommendQuery);

    List<LeisureSportsNumsVO> getEntryNums(@Param("startTime") String startTime, @Param("endTime")String endTime, @Param("startDate")String startDate, @Param("endDate")String endDate, @Param("type")String type, @Param("orderBy") String orderBy);

    Map<String, Object> getCompleteData(@Param("deckId") String deckId, @Param("motionId")String motionId);

    List<MyLeisureSportsList> getMyList(@Param("openId") String openId);
}
